package com.xdc.pigtestdemo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.xdc.pigtestdemo","com.github.pig.common.bean"})
@SpringBootApplication
@MapperScan("com.xdc.pigtestdemo.mapper")
public class PigTestDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(PigTestDemoApplication.class, args);
    }
}
